<?php
/**
 * @package      OWNServices
 * @subpackage   Site
 *
 * @author       Sanawin Tinsuwan	
 * @copyright    Copyright (C) 20014 Sanawin Tinsuwan. All rights reserved.
 * @license      http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt
 */

defined('_JEXEC') or die();

/**
 * Helper class for Ownservices.
 *
 * @package     Joomla.Administrator
 * @subpackage  com_ownservices
 * @since       1.6
 */
class OWNServicesHelper
{
    /**
     * @var string	The extension name.
     *
     */
    public static $extension = 'com_ownservices';

	/**
     * Gets a list of actions that can be performed.
     *
     * @param     int       $id        The item id
     *
     * @return    object    $result    
     */
    public static function getActions($section = '', $id = 0)
    {
		// Log usage of deprecated function
		JLog::add(__METHOD__ . '() is deprecated, use JHelperContent::getActions() with new arguments order instead.', JLog::WARNING, 'deprecated');

		// Get list of actions
		$result = JHelperContent::getActions('com_ownservices', $section, $id);

		return $result;
	}
}